use std::fmt::{
    self, Display,
};

#[derive(Debug)]
pub struct JormungandError {
    message: String,
}

impl Display for JormungandError {
    fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
        write!(f, "JormungandError : {}", self.message)
    }
}

impl JormungandError {
    pub fn new(message: String) -> Self {
        Self { message }
    }
}